<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <div class="search" id="search">
        <i class="iconfont">&#xe600;</i>
        <input id="input" type="text" placeholder="音乐/视频/电台/用户" value="生活">
    </div>
    <script>
         $("#search").click(function(){
            var isShow=$("input").is(":visible")
            if(isShow){
                $("#input").hide(0)
            }else{
                $("#input").show(0)
            }
}) 
    </script>
</body>
</html>